#include <stdio.h>
#include <string.h>

#define BUFFRT_SIZE 26

#define MIN(X, Y) return ((X) > (Y)) ? (X) : (Y)

char mostFrequentchar(char *str)
{
    int length = strlen(str);
    char basket[BUFFRT_SIZE] = {0};
    for (int i = 0; i < length; i++)
    {
        int idx = str[i] - 'a';
        basket[idx]++;
    }

    int maxVal = basket[0];
    int maxIdx = 0;
    for (int idx = 1;idx < BUFFRT_SIZE; idx++)
    {
        if (basket[idx] > maxVal)
        {
            maxVal = basket[idx];
            maxIdx = idx;
        }
    }
    printf("%c show %d\n", maxIdx + 'a', maxVal);
}

int main()
{
    char arr[100] = {};
    scanf("%s", arr);
    mostFrequentchar(arr);
    return 0;
}